<?php
$this->load->view("header");
?>

<?php echo form_open('grupo/detalhe_grupo');?>	
<h2><?= $title;?></h2>

<table class="tabela">
	<tr class='tab_cabecalho'>
		<td width="300px">Grupo de Pesquisa</td>
		<td width="150px">Dono</td>
		<td width="150px"></td>
	</tr>

<?php if (is_string($query)) { ?>
<tr>
	<td><?php echo $query;?></td>
</tr>
<?php } else { ?>

<?php foreach($query as $row):?>
<tr class="linha">
	<td><?=$row->Nome; ?></td>
	<td><?=$row->Dono; ?></td>
	<td><?=anchor('grupo/detalhe_grupo/'.$row->ComunidadeId, 'Detalhes'); ?></td>
</tr>
<tr valign="bottom">
	<td height="1" bgcolor="#ffffff" colspan="3"></td>
</tr>
<?php endforeach;?>
<?php } ?>
</table>
<br>
<input class='alinha' type="submit" value=" Novo " /> </td>
<?form_close()?>
        
<?php

$this->load->view("footer");
?>	